export function useLoading() {
  const loading = useState('global-loading')

  const showLoading = () => loading.value = true
  const hideLoading = () => loading.value = false

  return {
    showLoading,
    hideLoading
  }
}